import 'package:dailoz/generated/json/base/json_convert_content.dart';
import 'package:dailoz/entity/task_total_time_entity.dart';

TaskTotalTimeEntity $TaskTotalTimeEntityFromJson(Map<String, dynamic> json) {
  final TaskTotalTimeEntity taskTotalTimeEntity = TaskTotalTimeEntity();
  final String? time = jsonConvert.convert<String>(json['time']);
  if (time != null) {
    taskTotalTimeEntity.time = time;
  }
  final double? total = jsonConvert.convert<double>(json['total']);
  if (total != null) {
    taskTotalTimeEntity.total = total;
  }
  return taskTotalTimeEntity;
}

Map<String, dynamic> $TaskTotalTimeEntityToJson(TaskTotalTimeEntity entity) {
  final Map<String, dynamic> data = <String, dynamic>{};
  data['time'] = entity.time;
  data['total'] = entity.total;
  return data;
}
